
public class main {

	public static abstract class Cha {
		void  doIt() {
			System.out.println("Cha");
		}
		
		public void tesIt() {
			doIt();
		}
	}
	
	public static class Con1 extends Cha{
		void doIt(int x) {
			System.out.println("Con1");
		}
	}
	
	public static class Con11 extends Con1 {
		public void doItIt() {
			System.out.println("Con11");
			float x;
		}
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Cha x = new Con1();
		x.doIt(); // --> 'Con1'
		
		Con1 y = new Con1();
		
		x = new Cha();
		x.doIt(); // --> 'Cha'
	}

}
